package com.qyb.boot.app;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * <p>
 * 实现功能：
 * <p/>
 *
 * @author 秦有宝
 * @version 1.0.00
 */
@Configuration
//@EnableWebMvc
//@ComponentScan(basePackages = "com.qyb.boot")
public class MvcConfig extends WebMvcConfigurerAdapter {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
//        registry.addViewController("/home").setViewName("home/home");
//        registry.addViewController("/").setViewName("home");
//        registry.addViewController("/hello").setViewName("home/hello");
//        registry.addViewController("/login").setViewName("login");
    }
}

